package home.dao;

import home.model.Goods;
import home.model.Msg;

import java.util.List;

public interface MsgDao {
	public List<Msg> getAllMsg(String type);
	public List<Msg> getAllMsgHome(String type);
	public boolean deleteMsgById(int id);
	public Msg findById(int id);
	public List findByOneProperty(String className,String property,Object value);
	public List findByTwoProperty(String className,String property1,String property2,Object value1,Object value2);
	public boolean saveMsg(Msg msg);
	public boolean addReadnum(int id);
    public List<Goods> queryForPage(final String hql,final int offset,final int length);
    public int getAllRowCount(String hql);
}
